var t = function(t) {
    return (t = t.toString())[1] ? t : "0".concat(t);
};

module.exports = {
    formatTime: function(e) {
        "string" == typeof e && (e = parseInt(e)), "number" == typeof e && (e = new Date(e));
        var n = e.getFullYear(), o = e.getMonth() + 1, r = e.getDate(), a = e.getHours(), c = e.getMinutes(), u = e.getSeconds();
        return "".concat([ n, o, r ].map(t).join("/"), " ").concat([ a, c, u ].map(t).join(":"));
    },
    formatTime2:function(time){
        var date = new Date(parseInt(time));

    var mouth = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : (date.getMonth() + 1);
    var currentDate = date.getDate() < 10 ?("0"+date.getDate()):(date.getDate());

    return date.getFullYear() + "/" + mouth + "/" + currentDate;
    }
    
};

